<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>

<c:set var="ctx" value="${pageContext.request.contextPath}" />

<div id="main-content">
	<div class="col-lg-12">
		<p class="legend">修改个人服务商信息</p>
		<form id="update-form" class="form-horizontal">
			<div class="form-group">
				<label for="realName" class="">姓名：</label> 
				<input type="text" id="realName" name="realName" class="form-control required" style="width: 400px" readonly="readonly" value="${charitarian.realName }" />
			</div>
			<div class="form-group">
				<label for="nickName" class="">昵称：</label>
				<input type="text" id="nickName" name="nickName" class="form-control required" style="width: 400px" value="${charitarian.nickName }" />
			</div>
			<div class="form-group">
				<label for="sinaWeibo" class="">新浪微博：</label>
				<input type="text" id="sinaWeibo" name="sinaWeibo" class="form-control required" style="width: 400px" value="${charitarian.sinaWeibo }" />
			</div>
			<div class="form-group">
				<label for="tencentWeibo" class="">腾讯微博：</label>
				<input type="text" id="tencentWeibo" name="tencentWeibo" class="form-control required" style="width: 400px" value="${charitarian.tencentWeibo }" />
			</div>
			<div class="form-group">
				<input type="hidden" name="id" class="form-control required" value="${charitarian.id }" /> 
				<input type="hidden" name="user.id" class="form-control required" value="${charitarian.user.id }" /> 
				<label for="lastName" class="">审核状态</label> 
				<select name="status">
					<option value="1" <c:if test="${charitarian.status == '1' }">selected</c:if>>审核中</option>
					<option value="2" <c:if test="${charitarian.status == '2' }">selected</c:if>>通过</option>
					<option value="0" <c:if test="${charitarian.status == '0' }">selected</c:if>>拒绝</option>
				</select>
			</div>
			<div class="form-group">
				<div class=" ">
					<button type="button" class="btn btn-primary add-submit">保存</button>
				</div>
			</div>
		</form>
	</div>
</div>

<c:if test="${env == 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js-dist/admin/charitarian-edit-page");
	</script>
</c:if>
<c:if test="${env != 'production' }">
	<script type="text/javascript">
		seajs.use("${ctx}/assets/js/admin/charitarian-edit-page");
	</script>
</c:if>